home *** CD-ROM | disk | FTP | other *** search
/ Internet 53 / INTERNET53.iso / pc / software / windows / building / coldfusion studio evaluation / data1.cab / CFS_Wizards / CFML / Drill Down.vtm < prev    next >
Encoding:
Text File  |  1998-10-08  |  8.0 KB  |  189 lines

  1. <!--- 
  2. *
  3. *    Name: DATA DRILL-DOWN WIZARD
  4. *    Type: Wizard Definition File
  5. *
  6. *    Description:
  7. *    This wizard generates basic search/result/detail
  8. *    construct.
  9. *
  10. *    Note:
  11. *    This wizard is an example how predefined pages from
  12. *    the wizard page library are    being used in the custom
  13. *    wizards. Note the TYPE attribute that specifies the
  14. *    page ID for one of the predefined pages.
  15. *
  16. --->
  17.  
  18. <WIZARD name="DataDrillDownWizard" caption="Data Drill-Down Wizard" image="..\\images\\wizardoutput.bmp">
  19.  
  20. <!--- wizard parameters --->
  21. <PARAM name="ApplicationName" value="" required="yes">
  22. <PARAM name="DataSource" value="" required="yes">
  23. <PARAM name="Tables" value="" required="yes">
  24. <PARAM name="SearchFields" value="" required="yes">
  25. <PARAM name="ResultFields" value="" required="yes">
  26. <PARAM name="DetailFields" value="" required="yes">
  27. <PARAM name="UniqueIdentifier" value="" required="yes">
  28. <PARAM name="Joins" value="">
  29.  
  30.  
  31. <!--------------------- WIZARD PAGES -------------------------------->
  32.  
  33.  
  34. <!------------------ Enter application params ----------------------->
  35. <PAGE name="SelectWizardNameAndLocation" type="SelectNameAndLocation" caption="Data Drill-Down Application" image="..\\images\\Main.bmp">
  36.  
  37.     <INPUT name="editApplicationName" param="ApplicationName" required="yes"
  38.         validationMsg="You cannot leave the Application Name field blank">
  39.  
  40.     <INPUT name="editLocation" param="Location"    required="yes"
  41.         validationMsg="You cannot leave the Location field blank">
  42.  
  43. </PAGE>
  44.  
  45.  
  46.  
  47. <!--------------- Select data source ------------------------>
  48. <PAGE name="DataSource" type="SelectDataSource" caption="Data Source" image="..\\images\\SelectData.bmp">
  49.  
  50.     <PARAM name="ListBoxLabel" value="Select data source:">
  51.     <PARAM name="ListBoxDescription"
  52.         value="Choose the data source from which you would like to display data.\n\nIf your database is not registered as ODBC data source, open the ODBC administrator in Control Panel and add system data source for this database.">
  53.     <PARAM name="ResetParams" value="Joins">
  54.     <PARAM name="RemoveParams" value="Tables,SearchFields,ResultFields,DetailFields,UniqueIdentifier">
  55.     
  56.     <INPUT name="cbDataSources" param="DataSource" required="yes"
  57.         validationMsg="You did not select the data source. Please select one before proceeding.">
  58.  
  59. </PAGE>
  60.  
  61.  
  62.  
  63. <!---------------- Select tables -------------------------->
  64. <PAGE name="Tables" type="SelectTables" caption="Tables" image="..\\images\\SelectTable.bmp">
  65.  
  66.     <PARAM name="DataSource" value="$${DataSource}">
  67.     <PARAM name="ListBoxLabel" value="Select database tables:">
  68.     <PARAM name="ListBoxDescription"
  69.         value="Please specify the tables which will be involved in this application. This should include any tables against which you would like to search or tables containing data that will be displayed on either the Result or Detail pages.\n\nPress Ctrl or Shift together with the mouse click in order to select more than one table. Do not select unrelated tables.">
  70.     <PARAM name="MultiSelect" value="yes">
  71.     <PARAM name="ResetParams" value="Joins">
  72.     <PARAM name="RemoveParams" value="SearchFields,ResultFields,DetailFields,UniqueIdentifier">
  73.  
  74.     <INPUT name="lstTables" param="Tables" required="yes" 
  75.         validationMsg="You did not select any tables. Please select at least one before proceeding.">
  76.  
  77. </PAGE>
  78.  
  79.  
  80.  
  81. <!------------------- Select joins ------------------------->
  82. <PAGE name="TableJoins" type="SelectTableJoins" caption="Table Joins" image="..\\images\\SelectJoins.bmp">
  83.  
  84.   <PARAM name="DataSource" value="$${DataSource}">
  85.   <PARAM name="Tables" value="$${Tables}">
  86.   <PARAM name="ListContent" value="$${Joins}">
  87.   <INPUT name="lstJoins" param="Joins">
  88.  
  89. </PAGE>
  90.  
  91.  
  92.  
  93. <!------------------ Select search fields ----------------->
  94. <PAGE name="SearchFields" type="SelectFields" caption="Fields for Search page" image="..\\images\\SearchCriteria.bmp">
  95.  
  96.     <PARAM name="DataSource" value="$${DataSource}">
  97.     <PARAM name="Tables" value="$${Tables}">
  98.     <PARAM name="ListBoxLabel" value="Select the search fields:">
  99.     <PARAM name="ListBoxDescription" 
  100.         value="Choose all fields that should be included as search criteria on the Search page. Press Ctrl or Shift together with the mouse click in order to select more than one field.">
  101.     <PARAM name="MultiSelect" value="yes">
  102.  
  103.     <INPUT name="lstFields" param="SearchFields" required="yes"
  104.         validationMsg="You did not select any fields. Please select at least one before proceeding.">
  105.  
  106. </PAGE>
  107.  
  108.  
  109.  
  110. <!------------------ Select result fields ----------------->
  111. <PAGE name="ResultFields" type="SelectFields" caption="Fields for Result page" image="..\\images\\ViewResults.bmp">
  112.  
  113.     <PARAM name="DataSource" value="$${DataSource}">
  114.     <PARAM name="Tables" value="$${Tables}">
  115.     <PARAM name="ListBoxLabel" value="Select the result fields:">
  116.     <PARAM name="ListBoxDescription" 
  117.         value="Specify the fields you would like to display on the Result page. Press Ctrl or Shift together with the mouse click in order to select more than one field.">
  118.     <PARAM name="MultiSelect" value="yes">
  119.  
  120.     <INPUT name="lstFields" param="ResultFields" required="yes"
  121.         validationMsg="You did not select any fields. Please select at least one before proceeding.">
  122.  
  123.  
  124. </PAGE>
  125.  
  126.  
  127.  
  128. <!------------------- Select detail fields ----------------->
  129. <PAGE name="DetailFields" type="SelectFields" caption="Fields for Detail page" image="..\\images\\ViewDetails.bmp">
  130.  
  131.     <PARAM name="DataSource" value="$${DataSource}">
  132.     <PARAM name="Tables" value="$${Tables}">
  133.     <PARAM name="ListBoxLabel" value="Select the detail fields:">
  134.     <PARAM name="ListBoxDescription" 
  135.         value="Specify the fields you would like to display on the Detail page. Press Ctrl or Shift together with the mouse click in order to select more than one field.">
  136.     <PARAM name="MultiSelect" value="yes">
  137.  
  138.     <INPUT name="lstFields" param="DetailFields" required="yes"
  139.         validationMsg="You did not select any fields. Please select at least one before proceeding.">
  140.  
  141. </PAGE>
  142.  
  143.  
  144.  
  145. <!------------------- Select unique identifier ------------->
  146. <PAGE name="IDField" type="SelectField" caption="Unique Identifier" image="..\\images\\UniqueIDDetail.bmp">
  147.  
  148.     <PARAM name="DataSource" value="$${DataSource}">
  149.     <PARAM name="Tables" value="$${Tables}">
  150.     <PARAM name="ListBoxLabel" value="Select the unique identifier for the Detail page:">
  151.     <PARAM name="ListBoxDescription" value="In order to 'drill-down' to the detail page the wizard needs to know the unique identifier for the detail page. This is the field that determines which record should be displayed in detailed form.\n\nFor example, if you are building an application to search an employee database you might use a field called 'Employee_ID' as the unique identifier.">
  152.     <PARAM name="MultiSelect" value="no">
  153.  
  154.     <INPUT name="cbFields" param="UniqueIdentifier" required="yes"
  155.         validationMsg="You did not select the unique identifier. Please select one before proceeding.">
  156.  
  157. </PAGE>
  158.  
  159.  
  160.  
  161. <!----------------------- WIZARD OUTPUT --------------------->
  162.  
  163. <TEMPLATE
  164.   name="DrillDown_Search.wml"
  165.   outputFile="$${SafeApplicationName}_Search.cfm"
  166.   outputPath="$${Location}"
  167.   description="The Search page contains a simple form that will enable the users to specify search conditions for the data they want to display"
  168. >
  169. <TEMPLATE
  170.   name="DrillDown_Result.wml"
  171.   outputFile="$${SafeApplicationName}_Result.cfm"
  172.   outputPath="$${Location}"
  173.   description="The Result page contains a tabular summary of the data that satisfied the search criteria entered  on the first page. The user will be able to click on a specific record to retrieve detailed information on the record (drill-down)."
  174. >
  175. <TEMPLATE
  176.   name="DrillDown_Detail.wml"
  177.   outputFile="$${SafeApplicationName}_Detail.cfm"
  178.   outputPath="$${Location}"
  179.   description="The Detail page provides detail information on the record requested on the result page."
  180. >
  181. <TEMPLATE
  182.   name="DrillDown_AppendCriteria.wml"
  183.   outputFile="$${SafeApplicationName}_AppendCriteria.cfm"
  184.   outputPath="$${Location}"
  185.   description="Custom tag template, which generates the search query criteria string."
  186. >
  187.  
  188. </WIZARD>
  189.